package creator.builder;

import creator.builder.family.WeiGuoArmysBuilder;
import creator.builder.family.WuGuoArmysBuilder;

public class BuliderDemo {

    public static void main(String[] args) {
        ArmysBuilder armysBuilder = new WeiGuoArmysBuilder();
        ArmysDirector armysDirector = new ArmysDirector(armysBuilder);
        Armys armys = armysDirector.qianfengArmys();
        System.out.println(armys.toString());


        ArmysBuilder armysBuilder2 = new WuGuoArmysBuilder();
        ArmysDirector armysDirector2 = new ArmysDirector(armysBuilder2);
        Armys armys2 =armysDirector2.houdunArmys();
        System.out.println(armys2.toString());
    }
}
